<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>JavaScript改变背景颜色</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>

<input type="button" value="红色" onclick="color('red')">
<input type="button" value="黄色" onclick="color('yellow')" class="input">
<input type="button" value="蓝色" onclick="color('blue')">

<script src="js/script.js"></script>
</body>
</html>